//
//  AppDelegate.swift
//  HelloSwift
//
//  Created by alankong on 2016/11/17.
//  Copyright © 2016年 tuotiansudai. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    var navController: UINavigationController?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        self.window = UIWindow();
        let controller: AppTabbarController = AppTabbarController();
        navController = UINavigationController(rootViewController:controller);
//        navController?.navigationBar.tintColor = UIColor.blue
        navController?.navigationBar.barTintColor = UIColor.white
        self.window?.rootViewController = navController;
        self.window?.makeKeyAndVisible();
        return true
    }

    func applicationWillResignActive(_ application: UIApplication) {

    }

    func applicationDidEnterBackground(_ application: UIApplication) {

    }

    func applicationWillEnterForeground(_ application: UIApplication) {

    }

    func applicationDidBecomeActive(_ application: UIApplication) {

    }

    func applicationWillTerminate(_ application: UIApplication) {

    }


}

